package cn.myweb.action;

import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apache.struts2.convention.annotation.Result;

public class UserAction extends ActionSupport {

    /*@Action(value = "login"
            ,interceptorRefs = {@InterceptorRef(value = "myTimer")
                                ,@InterceptorRef(value = "defaultStack")
                                }
            ,results = {
            @Result(name = "success",location = "/login.jsp")
    })*/
    public String doLogin(){
        System.out.println("-------执行action");
        return "success";
    }

}
